<#include "header.html" />

<div class="span-11 box">
  <h2>Login</h2>
  
  <#if loginError??>
    <div class="error">
      ${loginError}
    </div>
  </#if>
  
  <form action="login" method="post">
    <table>
      <tr>
        <td>username</td>
        <td><input name="username" /></td>
      </tr>
      <tr>
        <td>password</td>
        <td><input type="password" name="password" /></td>
      </tr>
    </table>
    <input type="submit" value="Log in" />
  </form>
</div>  

<div class="span-11 last box">
  <h2>Sign up</h2>
  
  <#if signupError??>
    <div class="error">
      ${signupError}
    </div>
  </#if>
  
  <form action="signup" method="post">
    <table>
      <tr>
        <td>username</td>
        <td><input name="username" value="${username!}"/></td>
      </tr>
      <tr>
        <td>password</td>
        <td><input type="password" name="password" /></td>
      </tr>
      <tr>
        <td>password again</td>
        <td><input type="password" name="password_confirmation" /></td>
      </tr>
    </table>
    <input type="submit" value="Create an account">
  </form>
</div>

<#include "footer.html" />